﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace UniCT.LinkShareWpf.Interface
{
    [Serializable]
    [XmlRoot("Node")]
    public class Node
    {
        [XmlAttribute("Id")]
        public Guid Id
        {
            get;
            set;
        }

        [XmlIgnore]
        public Uri Uri
        {
            get
            {
               return new Uri(Url);
              
            }
        }

        [XmlAttribute("Url")]
        public string Url
        {
            get;
            set;
        }

        [XmlAttribute("LastAliveRequest")]
        public DateTime LastAliveRequest
        {
            get;
            set;
        }

        [XmlAttribute("LastPing")]
        public long LastPing
        {
            get;
            set;
        }
    }
}
